﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="ExpScoreEdit.aspx.cs" Inherits="LabMS.Web.ExpScoreEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>实验成绩录入</title>
    <link type="text/css" rel="stylesheet" href="../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../style/ie7.css" />
    <![endif]-->
</head>
<body class="mainBody">
    <form id="form1" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>实验成绩录入</label>
                </div>
            </div>
        </div>
        <div style="padding: 5px;" class="main">
            <p>
                学年：
                <asp:DropDownList ID="YearDDL" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDownList_OnSelectedIndexChange">
                </asp:DropDownList>
                学期：
                <asp:DropDownList ID="TermDDL" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDownList_OnSelectedIndexChange">
                    <asp:ListItem Value="1" Selected="True">
                                春季
                    </asp:ListItem>
                    <asp:ListItem Value="2">
                                秋季
                    </asp:ListItem>
                </asp:DropDownList>
                课程名称：
                <asp:TextBox ID="SubjectTBX" runat="server"></asp:TextBox>
                <asp:Button ID="SearchBtn" runat="server" CssClass="button" Text="搜索" OnClick="Search_OnClick" />
            </p>
            </div>
            <div class="main">
            <asp:GridView ID="ExScoreGridView" CssClass="infoTable" runat="server" AutoGenerateColumns="false"
                DataKeyNames="ID" AllowPaging="true" PageSize="10" OnPageIndexChanging="ExScoreGV_OnPageIndexChange"
                OnRowDataBound="ExGV_OnRowDataBound" Width="98%">
                <Columns>
                    <asp:BoundField DataField="Course_Code" HeaderText="序号" />
                    <asp:BoundField DataField="Course_Name" HeaderText="课程名称" />
                    <asp:BoundField DataField="ClassItem_Num" HeaderText="选课总人数" />
                    <asp:BoundField DataField="Course_ExprientHouse" HeaderText="课程学时" />
                    <asp:BoundField DataField="ClassItem_Name" HeaderText="选课班级" HtmlEncode="false" />
                    <asp:TemplateField HeaderText="记录">
                        <ItemTemplate>
                            <asp:Label ID="storeLbl" runat="server" Text="记录"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    暂无信息
                </EmptyDataTemplate>
                <HeaderStyle CssClass="header" />
            </asp:GridView>
        </div>
    </form>

    <script type="text/javascript" src="../js/jQuery/jquery-1.3.1.js"></script>

    <script type="text/javascript">
        $(function(){
            /* 修改样式 */
            $("#ExScoreGridView > tbody > tr:even").not(":first").addClass("even");
            $("#ExScoreGridView > tbody > tr").not(":first")
                .hover(
                    function(){
                        $(this).addClass("hover");
                    },
                    function(){
                        $(this).removeClass("hover");
                });
        }); 
    </script>

</body>
</html>
